import { createApp } from 'vue'
import { createPinia } from 'pinia'
import piniaPersist from 'pinia-plugin-persist'

import App from './App.vue'
import router from './router'

import '@/assets/styles/base.less'
import '@/assets/styles/iconfont.less'
import 'vant/lib/index.css'
import '@/mock/index'

import { Tab, Tabs, Swipe, SwipeItem, Search, Field, CellGroup, Col, Row, Lazyload } from 'vant'

const app = createApp(App)

const pinia = createPinia()
pinia.use(piniaPersist)
app.use(pinia)
app.use(router)
app.use(Tab)
app.use(Tabs)
app.use(Swipe)
app.use(SwipeItem)
app.use(Search)
app.use(Field)
app.use(CellGroup)
app.use(Col)
app.use(Row)
app.use(Lazyload)

app.mount('#app')
